import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_jd/pages/setting/controller.dart';
import 'package:flutter_jd/tools/utils/library.dart';
import 'package:flutter_jd/ui/pages/setting/out_button.dart';
import 'package:flutter_jd/ui/pages/setting/route_panel.dart';
import 'package:flutter_jd/ui/pages/setting/user_wrap.dart';
import 'package:flutter_jd/ui/widgets/body/top_bar.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:get/route_manager.dart';
import 'package:get/get.dart';

// 设置
class SettingPage extends GetView<SettingController> {
  @override
  Widget build(BuildContext context) {
    Get.put(SettingController());

    return Scaffold(
      appBar: TopBar(
        title: '账户设置',
        isBack: true,
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            UserWrap(),
            RoutePanel(list: controller.routeList1),
            RoutePanel(list: controller.routeList2),
            OutButton(),
            SizedBox(height: Utils.getBottomHeight())
          ],
        ),
      ),
    );
  }
}
